package araujoCoronelVillamayor.plantasVsZombies.domain;

import araujoCoronelVillamayor.plantasVsZombies.domain.Zombie;
import com.google.common.base.Objects;
import java.io.Serializable;

@SuppressWarnings("all")
public class FactoryZombies implements Serializable {
  private static int zombieNumero;
  
  private static FactoryZombies factoryZombiesUnica;
  
  private FactoryZombies() {
    FactoryZombies.zombieNumero = 0;
  }
  
  public static FactoryZombies getInstance() {
    FactoryZombies _xblockexpression = null;
    {
      boolean _equals = Objects.equal(FactoryZombies.factoryZombiesUnica, null);
      if (_equals) {
        FactoryZombies _factoryZombies = new FactoryZombies();
        FactoryZombies.factoryZombiesUnica = _factoryZombies;
      }
      _xblockexpression = (FactoryZombies.factoryZombiesUnica);
    }
    return _xblockexpression;
  }
  
  public Zombie crearColinBlunstone() {
    Zombie _xblockexpression = null;
    {
      this.incrementarZombieNumero();
      String _plus = ("Zombie Colin Blunstone (#" + Integer.valueOf(FactoryZombies.zombieNumero));
      String _plus_1 = (_plus + ")");
      Zombie _zombie = new Zombie(_plus_1, 1, 4);
      _xblockexpression = (_zombie);
    }
    return _xblockexpression;
  }
  
  public Zombie crearCranberrie() {
    Zombie _xblockexpression = null;
    {
      this.incrementarZombieNumero();
      String _plus = ("Zombie Cranberrie (#" + Integer.valueOf(FactoryZombies.zombieNumero));
      String _plus_1 = (_plus + ")");
      Zombie _zombie = new Zombie(_plus_1, 4, 1);
      _xblockexpression = (_zombie);
    }
    return _xblockexpression;
  }
  
  public int incrementarZombieNumero() {
    int _plus = (FactoryZombies.zombieNumero + 1);
    int _zombieNumero = FactoryZombies.zombieNumero = _plus;
    return _zombieNumero;
  }
}
